<title>{{title}}</title>
<div class="layout-container layout-column">
    <div class="layout-main mb4j-padding-all">
        <i-form action="/api/launcher/add" method="post" label-position="left" :label-width="120">
            <form-item :label="name.label">
                <i-input type="text" name="name" 
                	:placeholder="name.placeholder" 
            		valid="required:true,max:10" 
            		:label="name.label"></i-input>
            </form-item>
            <form-item :label="module.label">
            	<i-input 
            		type="text" 
            		name="module" 
            		:placeholder="module.placeholder" 
            		valid="required:true,max:50" 
            		:label="module.label">
               </i-input>
            </form-item>
            <form-item :label="enable.label">
                <i-switch v-model="enable.value" name="enable" size="large" true-value="1" false-value="0">
                	<span slot="open">{{switcher.on}}</span>
        			<span slot="close">{{switcher.off}}</span>
                </i-switch>
            </form-item>
            <form-item :label="manual.label">
            	<i-switch v-model="manual.value" size="large" name="manual" true-value="1" false-value="0">
            		<span slot="open">{{switcher.on}}</span>
        			<span slot="close">{{switcher.off}}</span>
            	</i-switch>
            </form-item>
            <form-item :label="sort.label">
                <input-number name="sort"
                	:min="1"
	        		:placeholder="sort.placeholder"
	        		valid="required:true,number:true" 
	        		:label="sort.label"
	        		v-model="sort.value" 
	        		style="width:100%;">
	        	</input-number>
            </form-item>
            <form-item :label="memo.label">
                <i-input type="textarea" name="memo" 
                	:placeholder="memo.placeholder" rows="3"
	            	valid="max:100" :label="memo.label"></i-input>
            </form-item>
        </i-form>
    </div>
    <div class="layout-footer">
        <i-button v-on:click="reset">{{button.reset}}</i-button>
        <i-button type="primary" v-on:click="submit">{{button.submit}}</i-button>
    </div>
</div>